]> dgit.raspbian.org Git - gnome-shell.git/commit
runDialog: Don’t treat empty input specially
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Sun, 7 Feb 2021 18:12:57 +0000 (19:12 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 8 Feb 2021 08:14:46 +0000 (08:14 +0000)
commit7bea63ae4b85f0c4ff0009e65b5358fcfa994f64
treecd457e6649217b27de156b98a957ffd4f4479ab2
parent473e77e2c5ab380dcfcaefab699ed8cbff3ae915
runDialog: Don’t treat empty input specially

Let empty input result in an error, just like other invalid commands
(bad syntax, nonempty whitespace, etc.). GLib already has an error
message “Text was empty (or contained only whitespace)” which it shows
for whitespace-only input, so letting that message apply also to empty
input makes sense.

This requires some tweaks further down the file to avoid interpreting
empty input as an empty path (relative to the home directory) and then
opening the home directory.

Part of https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3183.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1442>
js/ui/runDialog.js